package com.lai.note.dao;

import com.lai.note.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper {
    User selectUserByPhone(@Param("phone") String phone);

    int addUser(User user);

    User selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(User record);

    User selectByPhone(String phone);

    int updatePwd(String newPwd);

    User selectById(@Param("userId") String userId);
}
